#include <list>
#include <iostream>
using namespace std;

void test(){
    // 作业内容的尝试
    list<int> lst;
    lst = {1,2,3,4,5,6};
    list<int>::iterator iter1 = lst.begin(), iter2 = lst.end(); 
    cout << &iter1 << endl << &iter2 << endl;
    cout << *iter1 << "   " << *iter2 << endl;
    
    //while(iter1 < iter2); error 指针不能比较大小
    for(iter1;iter1 != iter2; iter1++){
        cout << *iter1 << " ";
    }
    cout << endl;
    //while(&iter1 < &iter2);
}

int main(int atgc, char * argv[])
{
    test();
    return 0;
}

